import { createApp } from "vue";
import "@/style.css";
import TDesignChat from "@tdesign-vue-next/chat";
import ElementPlus from "element-plus";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import "element-plus/dist/index.css";
import App from "./App.vue";
import router from "./router/index.ts";
import { createPinia } from "pinia";
import XcmgComponents from "xcmg-components";
import "xcmg-components/dist/style.css";
import * as echarts from "echarts";

const pinia = createPinia();

const app = createApp(App);

app.use(TDesignChat);
app.use(ElementPlus, {
  locale: zhCn,
});
app.use(router);
app.use(pinia);
app.use(XcmgComponents);

app.mount("#app");
app.config.globalProperties.$echarts = echarts;
